package com.situ.day24;

public class FinallyDemo {

    public static void main(String[] args) {
        int result = finallyNotWork();
        System.out.println(result);// 10001
    }
    public static int finallyNotWork() {
        int temp = 10000;
        try {
            throw new Exception();
        } catch (Exception e) {
            return ++temp;
        } finally {
            temp = 99990;
        }
    }
}
